using DevExpress.XtraEditors;
using DevExpress.XtraEditors.Repository;
using DevExpress.XtraGrid;
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.Grid;
using DevExpress.XtraTab;
using System;
using System.ComponentModel;
using System.Data;
using System.Data.OleDb;
using System.Drawing;
using System.Windows.Forms;
namespace NoteManger
{
	public class FrmBugReport : Form
	{
		private GridView gridViewBugs = null;
		private TLoginInfo _LoginInfo = new TLoginInfo();
		private NoteRemote _NoteRemoteObject = null;
		private IContainer components = null;
		private GridControl gridControlBug;
		private GridView gridViewBug;
		private RepositoryItemMemoEdit repositoryItemMemoEdit;
		private XtraTabControl xtraTabControl;
		private XtraTabPage xtraTabPageReg;
		private XtraTabPage xtraTabPageDeal;
		private RichTextBox richTextBoxBug;
		private SimpleButton btnCose;
		private SimpleButton btnSaveRegBug;
		private SimpleButton btnQuit;
		private SimpleButton btnSaveDealBug;
		private RichTextBox richTextBoxDeal;
		private Label lbInfo;
		private System.Windows.Forms.ComboBox cbbBugReporter;
		private Label lbFielter2;
		private TextBox tboxFilterValue;
		private SimpleButton btnFind;
		private SimpleButton btnDel;
		public TLoginInfo LoginInfo
		{
			set
			{
				this._LoginInfo = value;
			}
		}
		public NoteRemote NoteRemoteObject
		{
			set
			{
				this._NoteRemoteObject = value;
			}
		}
		private bool QueryDataAndSaveToLocalMdb(int aFilterFlag, string aFilterString)
		{
			string[,] array = new string[0, 0];
			string text = "";
			string aStrSql = "";
			LocalAccess localAccess = new LocalAccess();
			localAccess.Connect(NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb");
			bool result;
			if (!localAccess.Connected)
			{
				text = "保存失败！本地数据库连接失败！";
				GC.Collect();
				result = false;
			}
			else
			{
				int num = localAccess.ExecSQL("delete from BugReport");
				if (aFilterFlag == -1)
				{
					aStrSql = "select a.xh,a.BugBody,(case len(b.EmpName) when 2 then substring(b.EmpName,1,1) + '   ' +  substring(b.EmpName,2,1) else b.EmpName end) + '(' + a.RegManID + ')',a.RegDate,a.RegTime,(case len(c.EmpName) when 2 then substring(c.EmpName,1,1) + '   ' +  substring(c.EmpName,2,1) else c.EmpName end) + '(' + a.DealManID + ')',a.DealBody,a.DealDate,a.DealTime,a.DealFlag,a.RecordState from BugReport a(nolock),Employees b(nolock),Employees c(nolock) where a.RegManID *= b.EmpID and a.DealManID *= c.EmpID";
				}
				if (aFilterFlag == 0)
				{
					aStrSql = "select a.xh,a.BugBody,(case len(b.EmpName) when 2 then substring(b.EmpName,1,1) + '   ' +  substring(b.EmpName,2,1) else b.EmpName end) + '(' + a.RegManID + ')',a.RegDate,a.RegTime,(case len(c.EmpName) when 2 then substring(c.EmpName,1,1) + '   ' +  substring(c.EmpName,2,1) else c.EmpName end) + '(' + a.DealManID + ')',a.DealBody,a.DealDate,a.DealTime,a.DealFlag,a.RecordState from BugReport a(nolock),Employees b(nolock),Employees c(nolock) where a.RegManID *= b.EmpID and a.DealManID *= c.EmpID and a.RegManID = '" + aFilterString + "'";
				}
				if (aFilterFlag == 1)
				{
					aStrSql = "select a.xh,a.BugBody,(case len(b.EmpName) when 2 then substring(b.EmpName,1,1) + '   ' +  substring(b.EmpName,2,1) else b.EmpName end) + '(' + a.RegManID + ')',a.RegDate,a.RegTime,(case len(c.EmpName) when 2 then substring(c.EmpName,1,1) + '   ' +  substring(c.EmpName,2,1) else c.EmpName end) + '(' + a.DealManID + ')',a.DealBody,a.DealDate,a.DealTime,a.DealFlag,a.RecordState from BugReport a(nolock),Employees b(nolock),Employees c(nolock) where a.RegManID *= b.EmpID and a.DealManID *= c.EmpID and a.BugBody like '%" + aFilterString + "%'";
				}
				bool flag = this._NoteRemoteObject.CommonQuery(aStrSql, ref array, ref text);
				if (flag)
				{
					int num2 = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
					int num3 = array.GetUpperBound(1) - array.GetLowerBound(1) + 1;
					for (int i = 0; i <= num2 - 1; i++)
					{
						if (array[i, 9] == "")
						{
							array[i, 9] = "0";
						}
						aStrSql = string.Concat(new string[]
						{
							"insert into BugReport(xh,BugBody,RegManID,RegDate,RegTime,DealManID,DealBody,DealDate,DealTime,DealFlag,RecordState) values(",
							array[i, 0],
							",'",
							array[i, 1],
							"','",
							array[i, 2],
							"','",
							array[i, 3],
							"','",
							array[i, 4],
							"','",
							array[i, 5],
							"','",
							array[i, 6],
							"','",
							array[i, 7],
							"','",
							array[i, 8],
							"',",
							array[i, 9],
							",",
							array[i, 10],
							")"
						});
						num = localAccess.ExecSQL(aStrSql);
						if (num != 1)
						{
							text = localAccess.Message;
							localAccess.DisConnect();
							GC.Collect();
							result = false;
							return result;
						}
					}
				}
				localAccess.DisConnect();
				GC.Collect();
				string sqlDistinctMaster = "select xh as 序号,BugBody as 正文,RegManID as 登记人,RegDate as 登记日期,RegTime as 登记时间,DealManID as 处理人,DealBody as 处理结果,DealDate as 处理日期,DealTime as 处理时间,iif(DealFlag = 1,'已处理','未处理') as 处理标志,iif(RecordState = 0,'有效','无效') as 记录状态 from BugReport order by xh desc";
				this.ShowLocalBugDataInGridControl(this.gridControlBug, NoteRemote.GetNoteClientStartPath() + "\\LocalWorkNotes.mdb", sqlDistinctMaster);
				result = true;
			}
			return result;
		}
		private void GetUserList()
		{
			string[,] array = new string[0, 0];
			string text = "";
			bool flag = false;
			try
			{
				flag = this._NoteRemoteObject.CommonQuery("select (case len(EmpName) when 2 then substring(EmpName,1,1) + '  ' + substring(EmpName,2,1) else EmpName end) EmpName,EmpID from Employees(nolock) where PurID <> 0 and RecordState = 0", ref array, ref text);
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			if (flag)
			{
				int num = array.GetUpperBound(0) - array.GetLowerBound(0) + 1;
				for (int i = 0; i < num; i++)
				{
					this.cbbBugReporter.Items.Add(array[i, 0] + "(" + array[i, 1] + ")");
				}
			}
			else
			{
				MessageBox.Show(text, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
		}
		private void ShowLocalBugDataInGridControl(GridControl objGridControl, string aLocalMdbPath, string sqlDistinctMaster)
		{
			System.Data.OleDb.OleDbConnection oleDbConnection = new System.Data.OleDb.OleDbConnection();
			string systemDirectory = Environment.SystemDirectory;
			string text = "Provider=Microsoft.Jet.OleDb.4.0;";
			text = text + "Data Source=" + aLocalMdbPath;
			oleDbConnection.Close();
			oleDbConnection.ConnectionString = text;
			oleDbConnection.Open();
			System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter = new System.Data.OleDb.OleDbDataAdapter();
			System.Data.OleDb.OleDbCommand oleDbCommand = new System.Data.OleDb.OleDbCommand();
			System.Data.DataSet dataSet = new System.Data.DataSet();
			oleDbCommand.Connection = oleDbConnection;
			oleDbCommand.CommandText = sqlDistinctMaster;
			oleDbDataAdapter.SelectCommand = oleDbCommand;
			oleDbDataAdapter.Fill(dataSet, "DistinctMaster");
			objGridControl.MainView.Dispose();
			this.gridViewBugs = new GridView(objGridControl);
			this.gridViewBugs.PopulateColumns(dataSet.Tables["DistinctMaster"]);
			this.gridViewBugs.OptionsDetail.ShowDetailTabs = false;
			for (int i = 0; i < this.gridViewBugs.Columns.Count; i++)
			{
				this.gridViewBugs.Columns[i].OptionsColumn.AllowEdit = false;
			}
			this.gridViewBugs.OptionsView.ShowGroupPanel = false;
			this.gridViewBugs.Columns[0].Visible = false;
			this.gridViewBugs.Columns[1].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewBugs.Columns[6].ColumnEdit = this.repositoryItemMemoEdit;
			this.gridViewBugs.OptionsView.RowAutoHeight = true;
			objGridControl.MainView = this.gridViewBugs;
			objGridControl.DataSource = dataSet.Tables["DistinctMaster"];
			objGridControl.ForceInitialize();
			oleDbDataAdapter.Dispose();
			oleDbCommand.Dispose();
			dataSet.Dispose();
		}
		public FrmBugReport()
		{
			this.InitializeComponent();
		}
		private void FrmBugReport_Shown(object sender, EventArgs e)
		{
			this.QueryDataAndSaveToLocalMdb(-1, "");
			this.GetUserList();
			if (this._LoginInfo.LoginID != "660")
			{
				this.xtraTabPageDeal.PageVisible = false;
			}
		}
		private void btnSaveRegBug_Click(object sender, EventArgs e)
		{
			if (this.richTextBoxBug.Text.Trim() == "请在此处输入Bug或者建议的详细描述，以便设计者及时准确有效的处理。")
			{
				MessageBox.Show("未输入Bug或者建议详细信息！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.richTextBoxBug.Focus();
			}
			else
			{
				if (this.richTextBoxBug.Text.Trim() == "")
				{
					MessageBox.Show("未输入Bug或者建议详细信息！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					this.richTextBoxBug.Focus();
				}
				else
				{
					string[,] array = new string[0, 0];
					string str = "";
					if (!this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
					{
						"insert into BugReport(BugBody,RegManID,RegDate,RegTime,RecordState) values('",
						this.richTextBoxBug.Text.Trim(),
						"','",
						this._LoginInfo.LoginID,
						"','",
						DateTime.Now.ToString("yyyy-MM-dd"),
						"','",
						DateTime.Now.ToString("HH:mm:ss"),
						"',0) if @@error = 0 and @@rowcount = 1 select 'T' else select 'F'"
					}), ref array, ref str))
					{
						MessageBox.Show("Bug、建议登记失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					else
					{
						if (array[0, 0] == "T")
						{
							this.richTextBoxBug.Clear();
							MessageBox.Show("Bug、建议登记成功!非常感谢，请关注解决结果！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							this.QueryDataAndSaveToLocalMdb(-1, "");
						}
						else
						{
							MessageBox.Show("Bug、建议登记失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
					}
				}
			}
		}
		private void richTextBoxBug_Enter(object sender, EventArgs e)
		{
			if (this.richTextBoxBug.Text.Trim() == "请在此处输入Bug或者建议的详细描述，以便设计者及时准确有效的处理。")
			{
				this.richTextBoxBug.Text = "";
				this.richTextBoxBug.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular);
			}
		}
		private void richTextBoxBug_Leave(object sender, EventArgs e)
		{
			if (this.richTextBoxBug.Text.Trim() == "")
			{
				this.richTextBoxBug.Text = "请在此处输入Bug或者建议的详细描述，以便设计者及时准确有效的处理。";
				this.richTextBoxBug.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic);
			}
		}
		private void btnCose_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnQuit_Click(object sender, EventArgs e)
		{
			base.Close();
		}
		private void btnSaveDealBug_Click(object sender, EventArgs e)
		{
			if (this.richTextBoxDeal.Text.Trim() == "")
			{
				MessageBox.Show("未输入Bug或者建议的处理结果信息！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				this.richTextBoxDeal.Focus();
			}
			else
			{
				string text;
				if (this.gridViewBugs.GetFocusedRowCellValue("序号") != null)
				{
					text = this.gridViewBugs.GetFocusedRowCellValue("序号").ToString();
				}
				else
				{
					text = "";
				}
				if (text == "")
				{
					MessageBox.Show("要答复Bug、建议需要先选择一个欲答复项！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					if (this.gridViewBugs.GetFocusedRowCellValue("处理标志").ToString() == "已处理")
					{
						if (MessageBox.Show("Bug或者建议已经答复，确定要重新答复？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) == DialogResult.No)
						{
							return;
						}
					}
					string[,] array = new string[0, 0];
					string str = "";
					if (!this._NoteRemoteObject.CommonQuery(string.Concat(new string[]
					{
						"update BugReport set DealManID = '",
						this._LoginInfo.LoginID,
						"',DealBody='",
						this.richTextBoxDeal.Text.Trim(),
						"',DealDate='",
						DateTime.Now.ToString("yyyy-MM-dd"),
						"',DealTime = '",
						DateTime.Now.ToString("HH:mm:ss"),
						"',DealFlag = 1 where xh = ",
						text,
						"if @@error = 0 and @@rowcount = 1 select 'T' else select 'F'"
					}), ref array, ref str))
					{
						MessageBox.Show("Bug、建议答复失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					else
					{
						if (array[0, 0] == "T")
						{
							this.richTextBoxDeal.Clear();
							MessageBox.Show("Bug、建议答复成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							this.QueryDataAndSaveToLocalMdb(-1, "");
						}
						else
						{
							MessageBox.Show("Bug、建议答复失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
						}
					}
				}
			}
		}
		private void cbbBugReporter_SelectedIndexChanged(object sender, EventArgs e)
		{
			string text = this.cbbBugReporter.Text;
			text = text.Substring(text.IndexOf("("));
			text = text.Replace("(", "");
			text = text.Replace(")", "");
			this.QueryDataAndSaveToLocalMdb(0, text);
		}
		private void btnFind_Click(object sender, EventArgs e)
		{
			this.QueryDataAndSaveToLocalMdb(1, this.tboxFilterValue.Text.Trim());
		}
		private void tboxFilterValue_KeyPress(object sender, KeyPressEventArgs e)
		{
			if (e.KeyChar == '\r')
			{
				this.btnFind_Click(sender, null);
				e.Handled = true;
			}
		}
		private void btnDel_Click(object sender, EventArgs e)
		{
			string text;
			if (this.gridViewBugs.GetFocusedRowCellValue("序号") != null)
			{
				text = this.gridViewBugs.GetFocusedRowCellValue("序号").ToString();
			}
			else
			{
				text = "";
			}
			if (text == "")
			{
				MessageBox.Show("要删除Bug或者建议需要先选择一个欲删除项！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
			}
			else
			{
				string text2 = this.gridViewBugs.GetFocusedRowCellValue("登记人").ToString();
				text2 = text2.Substring(text2.IndexOf("("));
				text2 = text2.Replace("(", "");
				text2 = text2.Replace(")", "");
				if (text2 != this._LoginInfo.LoginID)
				{
					MessageBox.Show("不是您登记的Bug或者建议，您无权删除！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
				}
				else
				{
					if (this.gridViewBugs.GetFocusedRowCellValue("处理标志").ToString() == "已处理")
					{
						MessageBox.Show("所选Bug或者建议已经被处理，不能删除！", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
					}
					else
					{
						if (MessageBox.Show("Bug或者建议一经删除将不可撤销，确定删除？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question, MessageBoxDefaultButton.Button2) != DialogResult.No)
						{
							string[,] array = new string[0, 0];
							string str = "";
							if (!this._NoteRemoteObject.CommonQuery("delete from BugReport where xh = " + text + "if @@error = 0 and @@rowcount = 1 select 'T' else select 'F'", ref array, ref str))
							{
								MessageBox.Show("Bug或者建议删除失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
							}
							else
							{
								if (array[0, 0] == "T")
								{
									this.richTextBoxDeal.Clear();
									MessageBox.Show("Bug或者建议删除成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
									this.QueryDataAndSaveToLocalMdb(-1, "");
								}
								else
								{
									MessageBox.Show("Bug或者建议删除失败!" + str, "提示", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
								}
							}
						}
					}
				}
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.gridControlBug = new GridControl();
			this.gridViewBug = new GridView();
			this.repositoryItemMemoEdit = new RepositoryItemMemoEdit();
			this.xtraTabControl = new XtraTabControl();
			this.xtraTabPageReg = new XtraTabPage();
			this.btnCose = new SimpleButton();
			this.btnSaveRegBug = new SimpleButton();
			this.richTextBoxBug = new RichTextBox();
			this.xtraTabPageDeal = new XtraTabPage();
			this.richTextBoxDeal = new RichTextBox();
			this.btnQuit = new SimpleButton();
			this.btnSaveDealBug = new SimpleButton();
			this.lbInfo = new Label();
			this.cbbBugReporter = new System.Windows.Forms.ComboBox();
			this.lbFielter2 = new Label();
			this.tboxFilterValue = new TextBox();
			this.btnFind = new SimpleButton();
			this.btnDel = new SimpleButton();
			((ISupportInitialize)this.gridControlBug).BeginInit();
			((ISupportInitialize)this.gridViewBug).BeginInit();
			((ISupportInitialize)this.repositoryItemMemoEdit).BeginInit();
			((ISupportInitialize)this.xtraTabControl).BeginInit();
			this.xtraTabControl.SuspendLayout();
			this.xtraTabPageReg.SuspendLayout();
			this.xtraTabPageDeal.SuspendLayout();
			base.SuspendLayout();
			this.gridControlBug.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.gridControlBug.EmbeddedNavigator.Name = "";
			this.gridControlBug.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.gridControlBug.Location = new System.Drawing.Point(1, 39);
			this.gridControlBug.MainView = this.gridViewBug;
			this.gridControlBug.Name = "gridControlBug";
			this.gridControlBug.RepositoryItems.AddRange(new RepositoryItem[]
			{
				this.repositoryItemMemoEdit
			});
			this.gridControlBug.Size = new System.Drawing.Size(682, 216);
			this.gridControlBug.TabIndex = 12;
			this.gridControlBug.ViewCollection.AddRange(new BaseView[]
			{
				this.gridViewBug
			});
			this.gridViewBug.GridControl = this.gridControlBug;
			this.gridViewBug.Name = "gridViewBug";
			this.gridViewBug.OptionsView.RowAutoHeight = true;
			this.gridViewBug.OptionsView.ShowGroupPanel = false;
			this.repositoryItemMemoEdit.Name = "repositoryItemMemoEdit";
			this.xtraTabControl.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.xtraTabControl.Location = new System.Drawing.Point(1, 261);
			this.xtraTabControl.Name = "xtraTabControl";
			this.xtraTabControl.SelectedTabPage = this.xtraTabPageReg;
			this.xtraTabControl.Size = new System.Drawing.Size(684, 159);
			this.xtraTabControl.TabIndex = 13;
			this.xtraTabControl.TabPages.AddRange(new XtraTabPage[]
			{
				this.xtraTabPageReg,
				this.xtraTabPageDeal
			});
			this.xtraTabPageReg.Controls.Add(this.btnDel);
			this.xtraTabPageReg.Controls.Add(this.btnCose);
			this.xtraTabPageReg.Controls.Add(this.btnSaveRegBug);
			this.xtraTabPageReg.Controls.Add(this.richTextBoxBug);
			this.xtraTabPageReg.Name = "xtraTabPageReg";
			this.xtraTabPageReg.Size = new System.Drawing.Size(675, 127);
			this.xtraTabPageReg.Text = "登记Bug、建议";
			this.btnCose.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnCose.Location = new System.Drawing.Point(597, 100);
			this.btnCose.Name = "btnCose";
			this.btnCose.Size = new System.Drawing.Size(75, 23);
			this.btnCose.TabIndex = 11;
			this.btnCose.Text = "关闭(&C)";
			this.btnCose.Click += new EventHandler(this.btnCose_Click);
			this.btnSaveRegBug.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSaveRegBug.Location = new System.Drawing.Point(597, 3);
			this.btnSaveRegBug.Name = "btnSaveRegBug";
			this.btnSaveRegBug.Size = new System.Drawing.Size(75, 23);
			this.btnSaveRegBug.TabIndex = 10;
			this.btnSaveRegBug.Text = "保存(&S)";
			this.btnSaveRegBug.Click += new EventHandler(this.btnSaveRegBug_Click);
			this.richTextBoxBug.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.richTextBoxBug.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Bold | System.Drawing.FontStyle.Italic, System.Drawing.GraphicsUnit.Point, 134);
			this.richTextBoxBug.Location = new System.Drawing.Point(3, 3);
			this.richTextBoxBug.Name = "richTextBoxBug";
			this.richTextBoxBug.Size = new System.Drawing.Size(586, 121);
			this.richTextBoxBug.TabIndex = 0;
			this.richTextBoxBug.Text = "请在此处输入Bug或者建议的详细描述，以便设计者及时准确有效的处理。";
			this.richTextBoxBug.Enter += new EventHandler(this.richTextBoxBug_Enter);
			this.richTextBoxBug.Leave += new EventHandler(this.richTextBoxBug_Leave);
			this.xtraTabPageDeal.Controls.Add(this.richTextBoxDeal);
			this.xtraTabPageDeal.Controls.Add(this.btnQuit);
			this.xtraTabPageDeal.Controls.Add(this.btnSaveDealBug);
			this.xtraTabPageDeal.Name = "xtraTabPageDeal";
			this.xtraTabPageDeal.Size = new System.Drawing.Size(675, 127);
			this.xtraTabPageDeal.Text = "答复";
			this.richTextBoxDeal.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right);
			this.richTextBoxDeal.Font = new System.Drawing.Font("宋体", 10.5f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
			this.richTextBoxDeal.Location = new System.Drawing.Point(3, 3);
			this.richTextBoxDeal.Name = "richTextBoxDeal";
			this.richTextBoxDeal.Size = new System.Drawing.Size(586, 121);
			this.richTextBoxDeal.TabIndex = 14;
			this.richTextBoxDeal.Text = "";
			this.btnQuit.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnQuit.Location = new System.Drawing.Point(597, 100);
			this.btnQuit.Name = "btnQuit";
			this.btnQuit.Size = new System.Drawing.Size(75, 23);
			this.btnQuit.TabIndex = 13;
			this.btnQuit.Text = "关闭(&C)";
			this.btnQuit.Click += new EventHandler(this.btnQuit_Click);
			this.btnSaveDealBug.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnSaveDealBug.Location = new System.Drawing.Point(597, 71);
			this.btnSaveDealBug.Name = "btnSaveDealBug";
			this.btnSaveDealBug.Size = new System.Drawing.Size(75, 23);
			this.btnSaveDealBug.TabIndex = 12;
			this.btnSaveDealBug.Text = "保存(&S)";
			this.btnSaveDealBug.Click += new EventHandler(this.btnSaveDealBug_Click);
			this.lbInfo.AutoSize = true;
			this.lbInfo.Location = new System.Drawing.Point(5, 14);
			this.lbInfo.Name = "lbInfo";
			this.lbInfo.Size = new System.Drawing.Size(53, 12);
			this.lbInfo.TabIndex = 14;
			this.lbInfo.Text = "按报告人";
			this.cbbBugReporter.DropDownStyle = ComboBoxStyle.DropDownList;
			this.cbbBugReporter.FormattingEnabled = true;
			this.cbbBugReporter.Location = new System.Drawing.Point(58, 11);
			this.cbbBugReporter.Name = "cbbBugReporter";
			this.cbbBugReporter.Size = new System.Drawing.Size(171, 20);
			this.cbbBugReporter.TabIndex = 15;
			this.cbbBugReporter.SelectedIndexChanged += new EventHandler(this.cbbBugReporter_SelectedIndexChanged);
			this.lbFielter2.AutoSize = true;
			this.lbFielter2.Location = new System.Drawing.Point(235, 15);
			this.lbFielter2.Name = "lbFielter2";
			this.lbFielter2.Size = new System.Drawing.Size(41, 12);
			this.lbFielter2.TabIndex = 16;
			this.lbFielter2.Text = "按正文";
			this.tboxFilterValue.Anchor = (AnchorStyles.Top | AnchorStyles.Left | AnchorStyles.Right);
			this.tboxFilterValue.Location = new System.Drawing.Point(279, 11);
			this.tboxFilterValue.Name = "tboxFilterValue";
			this.tboxFilterValue.Size = new System.Drawing.Size(323, 21);
			this.tboxFilterValue.TabIndex = 17;
			this.tboxFilterValue.KeyPress += new KeyPressEventHandler(this.tboxFilterValue_KeyPress);
			this.btnFind.Anchor = (AnchorStyles.Top | AnchorStyles.Right);
			this.btnFind.Location = new System.Drawing.Point(608, 10);
			this.btnFind.Name = "btnFind";
			this.btnFind.Size = new System.Drawing.Size(75, 23);
			this.btnFind.TabIndex = 18;
			this.btnFind.Text = "检索(&F)";
			this.btnFind.Click += new EventHandler(this.btnFind_Click);
			this.btnDel.Anchor = (AnchorStyles.Bottom | AnchorStyles.Right);
			this.btnDel.Location = new System.Drawing.Point(597, 52);
			this.btnDel.Name = "btnDel";
			this.btnDel.Size = new System.Drawing.Size(75, 23);
			this.btnDel.TabIndex = 12;
			this.btnDel.Text = "删除(&D)";
			this.btnDel.Click += new EventHandler(this.btnDel_Click);
			base.AutoScaleDimensions = new System.Drawing.SizeF(6f, 12f);
			base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new System.Drawing.Size(685, 422);
			base.Controls.Add(this.btnFind);
			base.Controls.Add(this.tboxFilterValue);
			base.Controls.Add(this.lbFielter2);
			base.Controls.Add(this.cbbBugReporter);
			base.Controls.Add(this.lbInfo);
			base.Controls.Add(this.xtraTabControl);
			base.Controls.Add(this.gridControlBug);
			base.Name = "FrmBugReport";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = "Bug与建议";
			base.WindowState = FormWindowState.Maximized;
			base.Shown += new EventHandler(this.FrmBugReport_Shown);
			((ISupportInitialize)this.gridControlBug).EndInit();
			((ISupportInitialize)this.gridViewBug).EndInit();
			((ISupportInitialize)this.repositoryItemMemoEdit).EndInit();
			((ISupportInitialize)this.xtraTabControl).EndInit();
			this.xtraTabControl.ResumeLayout(false);
			this.xtraTabPageReg.ResumeLayout(false);
			this.xtraTabPageDeal.ResumeLayout(false);
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
